package com.qys.livesMall.shop.modal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ShopGoodsSkuVO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "店铺商品id")
    private Long shopGoodsId;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "skuId")
    private Long skuId;
    @Schema(description = "商品名字")
    private String goodsName;
    @Schema(description = "sku名字")
    private String skuName;
    @Schema(description = "规格")
    private String skuAttr;
    @Schema(description = "图片")
    private String image;
    @Schema(description = "原价")
    private BigDecimal originalPrice;

    @Schema(description = "现价")
    private BigDecimal price;

    @Schema(description = "总数量")
    private Integer totalNum;

    @Schema(description = "可用数量")
    private Integer availableNum;

    @Schema(description = "冻结数量")
    private Integer freezeNum;

    @Schema(description = "状态:1上架,0下架")
    private boolean status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
